import 'dart:ffi';

import 'package:flutter/material.dart';
class Setting extends StatelessWidget {
  const Setting({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      child:ListView(
        children: [
          Text("圆角方式一",textAlign: TextAlign.center,style: TextStyle(
              fontWeight: FontWeight.bold,
              fontSize: 15,
              color: Colors.black
          ),),
          Row(
            children: [
            Padding(padding: EdgeInsets.all(10),
            child: ClipOval(

              child: Image.network("https://image.dapengjiaoyu.com/2021-07-10/k5daqg2vsy/2613854785261_QVBQ_SQ==.jpg",width: 50,height: 50,fit: BoxFit.cover),
            ),),
           Container(
             child:  Column(
               crossAxisAlignment: CrossAxisAlignment.start,//侧轴参数
               mainAxisSize: MainAxisSize.min,
               children: [
                 Container(
                   width: (MediaQuery.of(context).size).width-70,
                  child:Text("昵称：这是一条描述信息这是一条一条描述信息这是描述信息这是一条描述信息这是一条描述信息我是小明",softWrap:true,overflow:TextOverflow.ellipsis,style: TextStyle(fontSize: 12,color:Colors.black,fontWeight: FontWeight.bold)),
                 ),
                 Padding(padding: EdgeInsets.all(5)),
                 Container(
                     width: (MediaQuery.of(context).size).width-70,
                   child:   Text("这是一条描述信息。。。。",style: TextStyle(fontSize: 12)),
                 ),
               ],
             ),
           )
          ],),
          SizedBox(height: 50),
          Text("圆角方式二",style: TextStyle(
            fontWeight: FontWeight.bold,
            fontSize: 15,
            color: Colors.black
          ),textAlign: TextAlign.center,),
          Container(
              width: 120,
              height: 120,
              decoration: BoxDecoration(
                  shape: BoxShape.circle,//关键
                  image: DecorationImage(
                      image: NetworkImage('https://image.dapengjiaoyu.com/2021-07-09/kii16vg2ci/4042073975261_QVBQ_QQ.jpg'),
                      fit: BoxFit.cover
                  )
              )
          ),
          Text("圆角方式三",textAlign: TextAlign.center,style: TextStyle(
              fontWeight: FontWeight.bold,
              fontSize: 15,
              color: Colors.black
          ),),
          CircleAvatar(
            radius: 50,
            backgroundImage: NetworkImage("https://image.dapengjiaoyu.com/2021-07-09/kii16vg2ci/4042073975261_QVBQ_QQ.jpg"),
          )
        ],
      ),
    );
  }
}
